package com.fxp.project.jiuselu.web.models.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.user.entity.JslSaleInfo;
import com.fxp.project.jiuselu.web.models.user.request.ReqRegSalesMan;

/**
 * <p>
 * 销售员信息表 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
public interface IJslSaleInfoService extends IService<JslSaleInfo> {

    /**
     * saveOrUpdateToApply: 更新创建销售员申请<br/>
     *
     * @param userId
     * @param reqRegSalesMan
     * @return
     * @author Kai.Wang
     * @date 2021/11/1 14:13
     */
    CommonResult saveOrUpdateToApply(Long userId, ReqRegSalesMan reqRegSalesMan);

    CommonResult salesman(ReqRegSalesMan reqRegSalesMan);



    /**
     * getByUserId: 通过用户的UserId获取当前销售员信息<br/>
     *
     * @param userId
     * @return
     * @author Kai.Wang
     * @date 2021/11/1 14:20
     */
    JslSaleInfo getByUserId(Long userId);

    JslSaleInfo selectSaleInfoByBindId(Long bindId);
}
